import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView,
    meta:{
      title:"家校互通"
    }
  },
  {
    path: '/communication',
    name: 'communication',
    component: () => import('../views/CommunicationView.vue'),
    meta:{
      title:"家校互通-家校沟通"
    }
  },
  {
    path: '/score-query',
    name: 'score-query',
    component: () => import('../views/ScoreView.vue'),
    meta:{
      title:"家校互通-成绩查询"
    }
  }, {
    path: '/contact-info',
    name: 'contact-info',
    component: () => import('../views/ContactView.vue'),
    meta:{
      title:"家校互通-联系信息"
    }
  }
]

const router = new VueRouter({
  routes
})

export default router
